package com.sdhs.initdata.controller;

import com.sdhs.common.core.controller.BaseController;
import com.sdhs.common.core.domain.AjaxResult;
import com.sdhs.common.core.page.TableDataInfo;
import com.sdhs.initdata.service.IInitDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 初始化数据
 *
 * @author andong
 * @date 2025-03-20
 */
@RestController
@RequestMapping("/initData")
public class InitDataController extends BaseController
{
    @Autowired
    private IInitDataService initDataService;

    /**
     * 初始化【sf_person】：人员管理表(劳务人员+公司人员)
     */
    @GetMapping("/sf_person")
    public AjaxResult initSfPerson() {

        initDataService.initSfPerson();

        return success();
    }

}
